//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "FrmNewSecdSpoud.h"

// --> controllers
#include "IStudentFatherSaver.h"
#include "StudentFatherSaver.h"
#include "IStudentAddressSaver.h"
#include "StudentAddressSaver.h"


//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFormSecdSpoud *FormSecdSpoud;

IStudentDbSavingController *StudentDbSaver ;
IStudentAddressSaver *StudentAddressSaver;

//---------------------------------------------------------------------------
__fastcall TFormSecdSpoud::TFormSecdSpoud(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TFormSecdSpoud::Button1Click(TObject *Sender)
{

//saveStudentAddressIfNotExist(const string *streetName, const string *streetNumber, const string *town, const string *aem) const=0;
//arithmos mitroou ?? (afou twra dimiourgeite)
StudentAddressSaver->saveStudentAddressIfNotExist(Edit3->Text,Edit4->Text,Edit5->Text,null)

 /*
mydat->new_secd_foitit.pat_epagelm=Edit1->Text;
mydat->new_secd_foitit.mit_epagelm=Edit2->Text;
mydat->new_secd_foitit.address=Edit3->Text;
mydat->new_secd_foitit.num_adress=Edit4->Text;
mydat->new_secd_foitit.town=Edit5->Text;
mydat->new_secd_foitit.stathero=Edit6->Text;
mydat->new_secd_foitit.kinito=Edit7->Text;
   */
this->Close();
}
//---------------------------------------------------------------------------


